package com.zr.service.impl;

import java.util.List;

import com.zr.dao.E_userDao;
import com.zr.dao.impl.E_userDaoImpl;
import com.zr.model.UserMsg;
import com.zr.service.SelectAllUserMsgService;

public class SelectAllUserMsgServiceImpl implements SelectAllUserMsgService{
	private E_userDao userDao = new E_userDaoImpl();

	@Override
	public List<UserMsg> getAllUserMsgByPageByPagesize(int page, int pageSize) {
		int startPage = (page-1)*pageSize;
		List<UserMsg> userMsgs = userDao.selectAllUserMsgByPageByPagesize(startPage, pageSize);
		return userMsgs;
	}

	@Override
	public int getAllUserNumber() {
		int userNumber = userDao.selectAllUserNumber();
		return userNumber;
	}
	
}
